# for嵌套循环
# for variable in sequence:
#     for variable in sequence:
#         do something
#     do something

# for i in range(2):
#     print("这是第%d次循环" % (i + 1))
#     for j in range(2):
#         print("j")

# while嵌套循环
# while condition:
#     while condition:
#         statements
#     statements

# i = 0
# while i < 2:
#     print("这是第%d次循环" % (i + 1))
#     i += 1
#     j = 0
#     while j < 2:
#         print("j")
#         j += 1


# 九九乘法表
for i in range(1,10):
    for j in range(1,i+1):
        print(i, "*", j, "=", i * j, "\t", end='')
    print('')
